import request from "@/axios/request";
// 信息类型
export function getCaricatureApi(params) {
  return request({
    method: "GET",
    url: "search/getInfomation",
    params,
  });
}
// 公告类型
export function getInfomationchild(data) {
  return request({
    method: "post",
    url: "search/getInfomationchild",
    data,
  });
}

// 全部标讯
export function getsearch(data) {
  return request({
    method: "post",
    url: "search/index",
    data,
  });
}

// 关键字
export function getHotSearch(data) {
  return request({
    method: "get",
    url: "member/getHotSearch",
    data,
  });
}

// 供应商
export function getsupplier(data) {
  return request({
    method: "post",
    url: "/search/supplier",
    data,
  });
}

// 采购商
export function getbuyer(data) {
  return request({
    method: "post",
    url: "/search/buyer",
    data,
  });
}

// 招标代理机构
export function getendering(data) {
  return request({
    method: "post",
    url: "/search/tendering",
    data,
  });
}
// 拟建项目
export function getproject(data) {
  return request({
    method: "post",
    url: "/search/project",
    data,
  });
}

// 公司
export function getcompany(data) {
  return request({
    method: "post",
    url: "/search/company",
    data,
  });
}

// 详情
export function getcompany_name(data) {
  return request({
    method: "post",
    url: "/search/company_name",
    data,
  });
}

export function getab_num(data) {
  return request({
    method: "post",
    url: "search/tab_num",
    data,
  });
}

// 订阅
export function getbxsubscription(data) {
  return request({
    method: "post",
    url: "/bxsubscription/add",
    data,
  });
}
// 详情页的
export function getcompany_detail(data) {
  return request({
    method: "post",
    url: "/search/company_detail",
    data,
  });
}
export function getcompany_sum(data) {
  return request({
    method: "post",
    url: "/search/company_sum",
    data,
  });
}

export function getcompany_detail_zb(data) {
  return request({
    method: "post",
    url: "/search/company_detail_zb",
    data,
  });
}

export function getcompany_detail_lx(data) {
  return request({
    method: "post",
    url: "/search/company_detail_lx",
    data,
  });
}

export function getcompany_detail_zb_lx(data) {
  return request({
    method: "post",
    url: "/search/company_detail_zb_lx",
    data,
  });
}


// 品牌
export function getbrand(data) {
  return request({
    method: "post",
    url: "search/brand",
    data,
  });
}
// 招标预测
export function getforecast(data) {
  return request({
    method: "post",
    url: "search/forecast",
    data,
  });
}
// 到出联系人
export function getcontacts(data) {
  return request({
    method: "post",
    url: "Dataexport/contacts",
    data,
  });
}
// pk  详情里的竞争对手
export function getcompetitor(data) {
  return request({
    method: "post",
    url: "Dataexport/competitor",
    data,
  });
}

// 详情页的未中标
export function getcompany_detail_wzb(data) {
  return request({
    method: "post",
    url: "search/company_detail_wzb",
    data,
  });
}
// 联系人  
export function getcompany_contacts(data) {
  return request({
    method: "post",
    url: "search/company_contacts",
    data,
  });
}

export function getcompany_contacts_detail(data) {
  return request({
    method: "post",
    url: "search/company_contacts_detail",
    data,
  });
}

// 导出 标讯
export function Dataexportbx(data) {
  return request({
    method: "post",
    url: "/Dataexport/biaoxun",
    data,
  });
}

// 标讯导出 数量
export function Datallocation(data) {
  return request({
    method: "post",
    url: "dataexport/allocation",
    data,
  });
}

// 供应商
export function Dataexportsupplier(data) {
  return request({
    method: "post",
    url: "/Dataexport/supplier",
    data,
  });
}
// 采购商
export function Dataexportbuyer(data) {
  return request({
    method: "post",
    url: "/Dataexport/buyer",
    data,
  });
}
// 联系人
export function Datcontacts_export(data) {
  return request({
    method: "post",
    url: "/Dataexport/contacts_export",
    data,
  });
}
// 竞争对手导出
export function Datcompetitor_export(data) {
  return request({
    method: "post",
    url: "/Dataexport/competitor_export",
    data,
  });
}
// 最大导出数量
export function allocation(data) {
  return request({
    method: "post",
    url: "Dataexport/allocation",
    data,
  });
}
//搜索tab权限
export function search_read(data) {
  return request({
    method: "post",
    url: "read/search_read",
    data,
  });
}
//公司详情tabs权限
export function company_read(data) {
  return request({
    method: "post",
    url: "read/company_read ",
    data,
  });
}


//公司详情代理项目接口列表
export function detail_dl(data) {
  return request({
    method: "post",
    url: "search/company_detail_dl",
    data,
  });
}

//公司详情代理项目接口联系人
export function lxr_dl(data) {
  return request({
    method: "post",
    url: "search/company_detail_dl_lx",
    data,
  });
}

//公司详情代理项目接口统计
export function tj_dl(data) {
  return request({
    method: "post",
    url: "search/company_sum_dl",
    data,
  });
}